from rest_framework.viewsets import ModelViewSet
from goods.models import SPUSpecification
from meiduo_admin.serializers.specs import SPUSpecificationSerializer
from meiduo_admin.utils import PageNum1


class SPUSpecificationViewSet(ModelViewSet):
    queryset = SPUSpecification.objects.all()
    pagination_class = PageNum1
    serializer_class = SPUSpecificationSerializer
